package org.wak.dialog.event
{
	import flash.events.Event;
	
	import org.wak.dialog.Topic;
	
	/**
	 * Event dispatched when the player selected a text to say
	 * in a DialogMenu 
	 * 
	 */	
	public class TextSelectedEvent extends Event
	{
		private var mTopic:Topic = null ; 
		
		public function TextSelectedEvent(type:String,pTopic:Topic, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			mTopic = pTopic ;
		}
		
		/**
		 * The topic of the option selected 
		 * @return 
		 * 
		 */		
		public function get topic():Topic
		{
			return mTopic;
		}
		
	}
}